<extend name="Public:common"/>
<block name="css">
    <link rel="stylesheet" href="__STATIC__/layui/css/layui.css"  media="all">
    <style>
        .newMess th{text-align:center;}
        th,td{padding: 10px;}
        .row-div {
            height: auto;
            line-height: 30px;
            font-size: 14px;
            margin-bottom: 10px;
            padding: 0px 100px!important;
        }
        .base-info-box{
            margin: 20px 40px;
            height: 40px;
            line-height: 40px;
            background-color: #F6FBFD;
        }
        .header-bg-01{
            width: 2px;
            height: 40px;
            background-color: #5BC0DE;
            display: inline-block;
            float: left;
        }
        .header-title{
            float: left;
            display: inline-block;
            height: 40px;
            padding-left: 20px;
            line-height: 40px;
        }
        .col-md-5 input{
            width: 400px!important;
        }

        .col-md-5 select{
            width: 400px!important;
        }
        .explain{
            font-size: 12px;
            color: #ccc;
            height: 20px;
        }
        .margin-left-20{
            margin-left: 20px!important;
        }
        #wrapper{
            width: 900px!important;
        }
    </style>
</block>
<block name="content">
    <div class="page-header"><h1><i class="fa fa-home"></i> 首页>会员管理>添加会员</h1></div>
     <div class="container-fluid">
         <form action="" method="post">
            <input type="hidden" name="visitor_id" id="visitor_id" value="{$visitor_id}">
            <div class="base-info-box">
                    <span class="header-bg-01"></span>
                    <span class="header-title">基本信息</span>
            </div>
            <div class="row row-div">
                <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>姓名：</p></div>
                <div class="col-md-5">
                    <input class="form-input" value="{$visitorInfo['visitor_name']}" required="required" type="text" name="visitor_name" id="visitor_name" placeholder="请输入会员的真实姓名">
                </div>
            </div>
            <div class="row row-div">
                <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>会员卡号：</p></div>
                <div class="col-md-5">
                    <input class="form-input" <if condition="$visitor_id eq 0">value="{$cardNum}"<else/>value="{$visitorInfo['card_num']}"</if> readonly type="text" name="card_num" id="card_num">
                </div>
            </div>
            <div class="row row-div">
                <div class="col-md-2" ><p class="text-right">性别：</p></div>
                <div class="col-md-6">
                    <input type='radio' width="30" id='visitor_sex1' name='visitor_sex' <if condition="$visitorInfo['visitor_sex'] eq 1">checked</if> value='1'/><span>男</span>
                    <input  style="margin-left: 10px;" type='radio' width="30" id='visitor_sex2' name='visitor_sex' <if condition="$visitorInfo['visitor_sex'] eq 2">checked</if> value='2'/><span>女</span>
                </div>
            </div>
            <div class="row row-div">
                <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>证件号：</p></div>
                <div class="col-md-5">
                    <input class="form-input" value="{$visitorInfo['documents_num']}" required="required" type="text" name="documents_num" id="documents_num" placeholder="请输入会员的证件号">
                </div>
            </div>
            <div class="row row-div">
                <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>联系电话：</p></div>
                <div class="col-md-5">
                    <input class="form-input" value="{$visitorInfo['visitor_phone']}" required="required" type="text" name="visitor_phone" id="visitor_phone" maxlength="50">
                </div>
            </div>
            <div class="row row-div">
                <div class="col-md-2" ><p class="text-right"><font color='red'>*</font>来源属性：</p></div>
                <div class="col-md-5">
                    <select id="source_type" name="source_type" class="width-157" onchange="showStoreName()">
                        <option value="0">请选择</option>
                        <option value="1" <if condition="$visitorInfo.source_type eq 1">selected</if> >直营门店</option>
                        <option value="2" <if condition="$visitorInfo.source_type eq 2">selected</if> >分销商</option>
                    </select>     
                </div>
            </div>

             <div class="row row-div">
                <div class="col-md-2" ><p class="text-right">工作单位：</p></div>
                <div class="col-md-5">
                    <input class="form-input" value="{$visitorInfo['work_units']}" type="text" name="work_units" id="work_units">
                </div>
            </div>
            <div style="height: 10px" ></div>
            <div class="col-md-offset-3 col-md-9" style="margin-left: 0px;text-align: center;width: 100%;">
                <button class="btn btn-info" type="submit">
                    <i class="icon-ok bigger-110"></i>提交
                </button>&nbsp; &nbsp; &nbsp;
            </div>
            <div style="height: 200px" ></div>
         </form>
     </div>
</block>
<block name="js">
    <script src="__STATIC__/layui/layui.all.js"></script>
    <script src="__STATIC__/layui/layui.js"></script>
    <script>

        
        
        layui.use('laydate', function() {
            var laydate = layui.laydate;
            //常规用法
            laydate.render({
                elem: '#start_time'
            });
            laydate.render({
                elem: '#end_time'
            });
        });
    </script>
</block>